package cn.kasa.org.domain;

import cn.kasa.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
public class Employee extends BaseDomain {


    private String username;
    private String phone;
    private String email;
    private Integer age;
    private Integer state;
    private Long department_id;
    private String salt;
    private String password;
    private Long shop_id;
    private Department department;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Employee> children = new ArrayList<>();





}
